package com.wwj.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wwj.springboot.entity.CmfzUser;

import java.util.List;
import java.util.Map;

public interface CmfzUserService extends IService<CmfzUser>{
//    用户模块
//
//1. 表格展示
//2. 修改
//3. 根据名字或者电话号码查询
Map selectByPage(int page, int limit, String userName, String userTelphone);

    Map updateUser(CmfzUser user);

    CmfzUser selectOne(int id);

    Map addUser(CmfzUser user);

    Map deleteUser(int id);

    Map addUserList(List<CmfzUser> userList);

    int[]  selectCount();


    List<Map> selectBySexCount();

    List<Map>   selectByProvinceCount();

    List<Map>   selectByWeekCount();

    Map selectAllCount();

    Map selectAllCountByThread() throws InterruptedException;
}
